package main

import "fmt"

// 将方法绑定到指针类型上
func (worker *Worker) do() {
	fmt.Println(worker.Name, "正在紧张的工作")
	worker.Name = "李四"
}

func main3() {
	worker := Worker{
		Name: "张三",
		Aage: 20,
	}
	worker.do()
	fmt.Println("当前的名字：", worker.Name)
}
